package mybatisPlugin.entity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Sql信息
 *
 * @author 方典典
 * @date 2021/6/8 15:37
 */
public class SqlInfo {

    /**
     * update语句的set项
     */
    private Map<String, String> items = new HashMap<>(10);
    /**
     * 表名
     */
    private List<String> tables = new ArrayList<>(3);
    /**
     * where语句
     */
    private String where = "";
    /**
     * 是否复杂语句
     */
    private boolean complex;
    /**
     * 是否为replace语句
     */
    private boolean replace;
    /**
     * sql
     */
    private String sql = "";

    /**
     * 是否需要加密处理
     */
    private boolean needAesHandle;


    public Map<String, String> getItems() {
        return items;
    }

    public void setItems(Map<String, String> items) {
        this.items = items;
    }

    public List<String> getTables() {
        return tables;
    }

    public void setTables(List<String> tables) {
        this.tables = tables;
    }

    public String getWhere() {
        return where;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    public boolean isComplex() {
        return complex;
    }

    public void setComplex(boolean complex) {
        this.complex = complex;
    }

    public boolean isReplace() {
        return replace;
    }

    public void setReplace(boolean replace) {
        this.replace = replace;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public boolean isNeedAesHandle() {
        return needAesHandle;
    }

    public void setNeedAesHandle(boolean needAesHandle) {
        this.needAesHandle = needAesHandle;
    }
}
